package com.song.mapper;

import com.song.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @Author 宋伟宁
 * @Date 2023/9/5
 * @Version 1.0
 **/
public interface UserMapper {

     //@Select("select * from t_users")
     List<User> findAll();
     List<User> mohu(String name);


     List<User> findByNameAndAge(Map map);
     List<User> findUsernameAndAge(@Param("name")String name,
                                   @Param("age") int age);


     int getToatl();
}
